MkTaskList
Node for task lists.¶
Example: Regular¶
- Item 1
- Item 2
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
93860739012720["mktasklist.MkTaskList"]
93860744077920["mkcontainer.MkContainer"]
93860744073616["mknode.MkNode"]
93860744080896["node.Node"]
140589822947552["builtins.object"]
93860744077920 --> 93860739012720
93860744073616 --> 93860744077920
93860744080896 --> 93860744073616
140589822947552 --> 93860744080896
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mktasklist/metadata.toml
[metadata]
icon = "mdi:library"
name = "MkTaskList"
[requirements.extension."pymdownx.tasklist"]
[examples.regular]
title = "Regular"
jinja = """
{{ [_mk.MkTask(True, "Item 1"), _mk.MkTask(True, "Item 2")] | MkTaskList }}
"""
[fragments]
task = """
- [{{ "x" if node.value else " " }}] {{ node.items | join(node.block_separator) | indent }}
"""
[output.markdown]
template = """
{{ node.items | join(node.block_separator) }}
"""